﻿@model PostModelBase
@using LastoRevival.Service.Contracts.Models;


<script type="text/javascript">

	$(function ()
	{
		$("#bbCodeReferenceLink").attr("href", "javascript:showCodeReferenceDialog()");
		$("#codeRefDialog").dialog(
		{
			autoOpen: false
		});
	});

	function showCodeReferenceDialog()
	{
		$("#codeRefDialog").dialog("open");
	}

</script>

<span id="subjectContainer">
	<label>@LanguageLoader.GetWord("SubjectLabel")</label>
	@Html.ValidationMessageFor(m => m.Subject)
	@Html.TextBoxFor(m => m.Subject, new { autocorrect = "on", id="subjectField" })
</span>
<span id="bodyContainer">
	<label>@LanguageLoader.GetWord("BodyLabel")</label>
	@Html.ValidationMessageFor(m => m.Body)
	@Html.TextAreaFor(m => m.Body, new { id = "bodyField" })
</span>
<span id="optionsContainer">
	
</span>

<a id="bbCodeReferenceLink" href="@Url.Action("BBCodeReference", "Post")">@LanguageLoader.GetWord("ForumCodesMayBeUsedText")</a>

<div id="codeRefDialog" title="@LanguageLoader.GetWord("ForumCodesDialogText")">

	@Html.Action("BBCodeReference", "Help")
 
</div>